package com.lingx.model.impl.interpreter;

import org.springframework.stereotype.Component;

import com.lingx.model.impl.AbstractInterpreter;
import com.lingx.utils.DateUtils;
@Component
public class SecondToStringInterpreter extends AbstractInterpreter{

	private static final long serialVersionUID = 5022270052127869187L;
	public SecondToStringInterpreter() {
		super("SecondToStringInterpreter","秒转时间描述-XX小时XX分钟");
	}
	@Override
	public Object input(Object value) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object output(Object value) throws Exception {
		return DateUtils.getTimeBy(Long.parseLong(value.toString()));
	}

}
